package cn.jcet.gumall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import cn.jcet.common.utils.PageUtils;
import cn.jcet.gumall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author coder_yang
 * @email 1546656922@qq.com
 * @date 2020-06-28 20:36:21
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 查询类别信息
     * @return
     */
    List<CategoryEntity> listWithTree();

    /**
     * 逻辑删除
     * @param longs
     */
    void removeMenusByIds(List<Long> longs);

    /**
     * 查询三级分类
     * @param catelogPath
     * @return
     */
    Long[] findByCateLogPath(Long catelogPath);

    /**
     * 同步更新
     * @param category
     */
    void updateDetail(CategoryEntity category);
}

